<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="b" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
    <head>
        <script src="scripts/jquery-1.5.2.js"></script>
        <script src="scripts/adsRotator/scripts/adsRotatorPlugin.js"></script>
        <link href="scripts/adsRotator/css/style.css" type="text/css" rel="stylesheet" />

        <script>
            $(document).ready(function() {
               $("#carrousel0").adsRotator(); 
               $("#carrousel1").adsRotator(); 
            });
        </script>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSPs Page</title>
    </head>
    <body>        
        <s:set value="bookCharts[0]" var="currentBookChart" />  
        <s:set value="0" var="index"/>
        <b:bookTop></b:bookTop>
        
        <s:set value="bookCharts[1]" var="currentBookChart" />  
        <s:set value="1" var="index"/>
        <b:bookTop></b:bookTop>
        
        <s:iterator value="bookCharts[1].books">
            <div>${title} progress: <b>${recentVoteChange}</b> recent upvotes:${recentUpvotes} recent downvotes: ${recentDownvotes}</div>
        </s:iterator>
    </body>
</html>
